<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>页面后退前进刷新</title>
        <script language="javascript">
            function back()
            {
                history.go(-1);  //后退1页
            }
            function forward()
            {
                history.go(+1);  //前进1页
            }
            function refresh()
            {
                history.go(-0)  //刷新
            }
        </script>
    </head>
    <body>
        <input type=button value=后退 onclick="back()">
        <input type=button value=刷新 onclick="refresh()">
        <input type=button value=前进 onclick="forward()">
        <br/>
    </body>
</html>
